﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Promo.DataContract;

namespace Promo.Web.Services
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "MarketplaceService" in code, svc and config file together.
    public class MarketplaceService : IMarketplaceService
    {

        List<MarketplaceApp> IMarketplaceService.GetApps(string accountId)
        {
            var list = new List<MarketplaceApp>();

            list.Add(new MarketplaceApp
            {
                Id = "1231298312",
                Title = "Test App 1",
                DisplayPrice = "1.99",
                UserRatingCount = 10,
                AverageUserRating = 4.7,
                Version = "1.2.0.0"
            });

            list.Add(new MarketplaceApp
            {
                Id = "1231293212",
                Title = "Test App 2",
                DisplayPrice = "2.99",
                UserRatingCount = 10,
                AverageUserRating = 4.7,
                Version = "1.2.0.0"
            });

            return list;
        }



        //public List<App> GetApps()
        //{
        //    throw new NotImplementedException();
        //}

    
    }
}
